﻿def CmdButton_OnMouseLeftReleased(s, e):
    worker = BackgroundWorker()
    worker.DoWork += lambda s,e: pylink['ScriptManager'].LoopRead()
    worker.RunWorkerAsync()
    s.Color = mxf.Color.White

def CmdButton_OnMouseLeftClicked(s, e):
    s.Color = mxf.Color.Gray

def CmdButton_OnLostFocus(s,e):
    s.Color = mxf.Color.White
    